import Layout from '/@vab/layouts/index.vue'
import { VabRouteRecordRaw } from '../types'
const procureRouter: VabRouteRecordRaw[] = [
  {
    path: '/procure',
    name: 'Procure',
    component: Layout,
    authName: 'Procure.all',
    meta: {
      title: '采购管理',
      icon: 'shopping-cart-2-line',
      authShow: true
    },
    children: [
      {
        path: 'check',
        name: 'ProcureCheck',
        authName: 'ProcureCheck.all',
        component: () => import('/@/views/procureIndex/index.vue'),
        meta: {
          title: '需求提报',
          noKeepAlive: true,
          authShow: true
        },
      },
      {
        path: 'detail',
        name: 'ProcureDetail',
        authName: 'ProcureDetail.all',
        component: () => import('/@/views/procureIndex/detail.vue'),
        meta: {
          hidden: true,
          title: '订单详情',
          noKeepAlive: true,
          authShow: true
        },
      },
      {
        path: 'create',
        name: 'Cooperate',
        authName: 'Cooperate.all',
        component: () => import('/@/views/procureIndex/cooperate/index.vue'),
        meta: {
          title: '订单创建',
          noKeepAlive: true,
          hidden: true,
          authShow: true
        },
      },
      {
        path: 'orderTrack',
        name: 'OrderTrack',
        authName: 'OrderTrack.all',
        component: () => import('/@/views/procureIndex/orderTrack/index.vue'),
        meta: {
          title: '订单跟踪',
          noKeepAlive: true,
          authShow: true
        },
      },
      {
        path: 'orderTrackDateil',
        name: 'OrderTrackDateil',
        authName: 'OrderTrackDateil.all',
        component: () => import('/@/views/procureIndex/orderTrack/detail.vue'),
        meta: {
          hidden: true,
          title: '订单详情',
          noKeepAlive: true,
          authShow: true
        },
      },
    ],
  },
]

export default procureRouter
